//
//  Prolist.m
//  MiaoTu
//
//  Created by dllo on 16/09/20
//  Copyright (c) dllo. All rights reserved.
//

#import "Prolist.h"
#import "Comrespro.h"
#import "Resproprops.h"

@implementation Prolist

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"ComResPro"]) {
        NSMutableArray<Comrespro *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Comrespro *model = [Comrespro modelWithDic:dic];
            [array addObject:model];
        }
        _ComResPro = array;
    }
    if ([key isEqualToString:@"ResProProps"]) {
        _ResProProps = [Resproprops modelWithDic:value];
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"ComResPro" : [Comrespro class]};
}

@end
